#include "mMsgUndef.h"

#define BEGIN_MSG_NAMESPACE(NAMESPACE, START_INDEX) \
	namespace NAMESPACE { \

#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)

#define BEGIN_MSG(TYPE) \
	s##TYPE::s##TYPE() \
	{ \
	msgType = eMSG::TYPE;

#else

#define BEGIN_MSG(TYPE) \
	s##TYPE::s##TYPE() \
	{ \
	msgType = eMSG::##TYPE;

#endif

#define END_MSG() \
	}

#define END_MSG_NAMESPACE() \
	}

#define MSG_FIELD(TYPE, NAME, VALUE) \
	NAME = VALUE;